import type { RouterConfig } from '@nuxt/schema'

export default {
  // https://router.vuejs.org/api/interfaces/routeroptions.html#routes
  routes: (_routes) => {
    // 移除携带 _components 的路由
    return _routes.filter((item) => {
      return !item.path.includes('/_components/')
    })
  },
} satisfies RouterConfig
